import string, os
import datetime
import subprocess

print 'Running network test...'
ip = '127.0.0.2'
trial = 10
now = datetime.datetime.now()
filename = "NetRemote_%s.txt" % now.strftime("%Y-%m-%d-%H-%M")
for i in range(trial) :
	cmd = "NetClient -c %s >> %s" % (ip, filename)
	os.popen(cmd)

print 'Done! Check results in %s' % filename